package mylab.starters.mybatis.injector.methods;

import com.baomidou.mybatisplus.core.metadata.TableFieldInfo;
import com.baomidou.mybatisplus.extension.injector.methods.AlwaysUpdateSomeColumnById;
import lombok.NoArgsConstructor;

import java.util.function.Predicate;

/**
 * 修改所有的字段，未设置的字段将置空
 */
@NoArgsConstructor
public class UpdateAllById extends AlwaysUpdateSomeColumnById {

    public static final String METHOD_NAME = "updateAllById";

    public UpdateAllById(Predicate<TableFieldInfo> predicate) {
        super(METHOD_NAME, predicate);
    }


}
